PRACTICE
Exit Intent
Move your mouse out of the viewport (towards the browser’s top edge) to trigger a modal dialog.
Close using Esc, clicking outside, or the buttons.
Exit Intent Modal Demo
This mimics the “exit intent” automation pattern. It triggers once until reset.
Tip: Move the cursor quickly to the top of the page to trigger.Practice ideas:
- Trigger the exit intent modal by moving the mouse outside the viewport.
- Validate that the modal is visible and contains expected text.
- Close using
Close, clicking outside, or pressingEsc.
Triggered: false
Status:
Modal state is tracked with
aria-hidden on the overlay.
Use locators like [data-testid="overlay"].